// 基于准备好的dom，初始化echarts实例
var myChart = echarts.init(document.getElementById('graph'));

flushClass($("#class"));

function selectClass(){
    flushTopicSet($("#topic-set"),{"classid":$("#class").val()});
    flushName($("#name"),{"classid":$("#class").val()});
}

function analysis() {
    var json={"classid":$("#class").val(),"userid":$("#name").val(),"examid":$("#topic-set").val()}

    $.get("http://139.199.200.112/dtpr/index.php?exam-teach-users-personexam",json,function (data) {
        data=JSON.parse(data).data;
        showAll(data);
    })
}